package com.art.sunflower.service;

import com.art.sunflower.exception.NullRsgrException;
import com.art.sunflower.util.MyPageInfo;

import java.util.Map;

public interface RsgrService {

    void add(String title, String introduce, String startTime, String endTime, Integer[] ids);

    void delete(Integer id) throws NullRsgrException;

    void update(Integer id, String title, String introduce, String startTime, String endTime, Integer[] ids) throws NullRsgrException;

    MyPageInfo getList(Integer pageSize, Integer pageNo) throws NullRsgrException;

    Map<String, Object> getById(Integer id) throws NullRsgrException;

    Map<String, Object> getAllRsgr(Integer id) throws NullRsgrException;

}
